package com.thingsgrid.appmanager.feign;

import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * 功能说明：文件上传feign
 *
 * @author 李龙飞
 * @since 2019/8/30 16:58
 */

@FeignClient(value = AppConstant.APPLICATION_NAME_PREFIX+"application-manager")
public interface FileFeign {

	@PostMapping(value = "/file/uploadFile",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
	String uploadFile(@RequestPart("file") MultipartFile file);

}
